package 常用类.日期处理.test02;

public class DateTest02 {
    public static void main(String[] args) {
        long nowTimeMillis = System.currentTimeMillis();
        System.out.println(nowTimeMillis);
        long begin = System.currentTimeMillis();
        print();
        long end = System.currentTimeMillis();
        System.out.println("方法执行时间：" + (end - begin) + " 毫秒");
    }
    public static void print(){
        for (int i = 1; i <= 1000000000L; i++) {
            //System.out.println("i = " + i);
        }
    }
}
